<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator"%>
<%@ taglib uri="http://www.opensymphony.com/sitemesh/page" prefix="pages"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@ page isELIgnored="false"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>Lorem ipsum oldal</title>
  	<base href="<%=request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath()+"/"  %>" />
	<script type="text/javascript" language="javascript">
		jQuery(document).ready(function(){
			/*jQuery("[name='item.users']").dropdownchecklist();
			jQuery("[name='item.categories']").dropdownchecklist();
			jQuery("[name='item.status']").dropdownchecklist();*/

			jQuery("form input,textarea,select").focus(function() {
				if(!jQuery(this).parent().hasClass('error')) jQuery(this).parent().addClass("active");
			});
			jQuery("form input,textarea,select").blur(function() {
				if(!jQuery(this).parent().hasClass('error')) jQuery(this).parent().removeClass("active");
			});
			
		});

		onFormSuccess = function () {
			jQuery.nyroModalRemove();
			jQuery(document).trigger("hashModified");
		}
	</script>
</head>
<body>
	<s:form name="formComment" validate="false" theme="simple" action="ajaxAddComment" method="post" namespace="%{namespace}" onsubmit="return validate(this, onFormSuccess);">
		<s:hidden name="projectNumber" value="%{item.id}" />
		<fieldset>
			<legend><s:text name="newComment"/></legend>
			<ul>
				<li>
					<s:label value="%{getText('item.comment')}" />
					<s:textarea name="comment" />
				</li>
				<li class="submit">
					<s:submit value="%{getText('item.add')}"  />
				</li>
			</ul>
		</fieldset>
	</s:form>
</body>

</html>